package com.gao.byname;

import com.gao.WantBean;

/**
 * 1.属性必需有setter方法
 * 2.属性名和<bean>中的name或id值一致
 *
 * @author GaoXi
 * @date 2022/2/22 19:55
 */
public class ByNameModeBean {

    private WantBean wantBean;

    /**
     * 必须Bean的名称未 wantBean才能注入进来
     * 且需要有setter方法
     * @param wantBean
     */
    public void setWantBean(WantBean wantBean) {
        this.wantBean = wantBean;
    }

    @Override
    public String toString() {
        return "ByNameModeBean{" +
            "wantBean=" + wantBean +
            '}';
    }
}
